/*!
\file Time.h
\author Po
\brief A simple time service.
*/
#pragma once

/*!
\class Time
\brief Provide current time in millisecond and delta millisecond between two Time::Update(). */
class Time
{
private:
	Time(void);
	~Time(void);

public:
	/*! Return current time in millisecond. */
	static DWORD Now();
	/*! Return last frame cost time in millisecond. */
	static double Delta();

public:
	/*! Should call this function one frame a time. */
	static void Update();

private:
	static double sm_dLastUpdate;
	static double sm_dDelta;
};

